package mirrormonkey.framework.parameter;

import com.jme3.network.MessageConnection;

public class NullInterpreter implements ParameterInterpreter {

	@Override
	public Object extractData(Object object) {
		return object;
	}

	@Override
	public Object packData(Object object) {
		return object;
	}

	@Override
	public Class<?> fetchClass(MessageConnection connection, Object parameter) {
		return parameter == null ? null : parameter.getClass();
	}

	@Override
	public boolean applies(Object parameter) {
		return true;
	}

}
